<template>
  <div class="index">
    <nav class="navbar p-2 navbar-expand-sm bg-primary-subtle navbar-primary-subtle fixed-top">
      <div class="logo">
        <NuxtLink href="/paper"><img src="/img/logo.png" class="navbar-brand img-fluid img-thumbnail" /></NuxtLink>
      </div>
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navmenu">
        <ul class="navbar-nav ms-auto">
          <li class="nav-item">
            <div class="nav-link" role="button">技术交流</div>
          </li>
          <li class="nav-item">
            <div class="nav-link" role="button">生活趣闻</div>
          </li>
          <li class="nav-item">
            <div class="nav-link" role="button">个人论坛</div>
          </li>
        </ul>
      </div>
    </nav>
    <div class="bar" style="height: 56px;"></div>
    <section class="p-3">
      <div class="container-fiuld">
        <div class="row">
          <div class="col-lg-8 mx-auto">
            <NuxtPage />
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script setup lang='ts'>
definePageMeta({
  middleware: 'redirect'
})
</script>

<style lang="scss" scoped>
.index {
  background: #edf1f5;
  min-height: 100vh;

  .logo {
    width: 35px;
  }
}
</style>